package cn.yqn.feign;


import cn.yqn.doc.CourseDoc;
import cn.yqn.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "service-search", fallbackFactory = CourseEsFeignClientFallbackFactory.class)
public interface CourseEsFeignClient {

    @PostMapping("/search/saveCourse")
    JSONResult saveCourseDoc(@RequestBody CourseDoc courseDoc);
}
